<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import="dao.Users"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>注册</title>
</head>
<body>
<c:choose>
	<c:when test="${sessionScope.UserMessage==null}">
	<c:set var="man_id" value="0"></c:set>
	</c:when>
	<c:otherwise>
	<c:set var="man_id" value="${sessionScope.UserMessage.id}"/>
	</c:otherwise>
</c:choose>
<div style=" height:300px; line-height:63px" align="center" >
		<h1>${error}</h1>
			用户名：${username}<br>
			昵称：${nickname}<br>  
			密码：${password}<br>
		<c:choose>
		<c:when test="${man_id==1}">
		<form action="${pageContext.request.contextPath}/users/control.jsp" method="post">
			<input name="submittype" type="submit" value="返回"/>
  	   </form>
  	    </c:when>
	    <c:otherwise>
  	   <form action="${pageContext.request.contextPath}/users/login.jsp" method="post">
			<input name="submittype" type="submit" value="返回"/>
  	   </form>
  	    </c:otherwise>
	    </c:choose>
	</div>
</body>
</html>